<?php use_helper("Date")?>
<h1 class="title"><?php echo __("Pagos")?></h1>

<table class="tbl-1">
	<thead>
		<tr>
			<th><?php echo __("Descripción")?></th>
			<th><?php echo __("Usuario")?></th>
			<th><?php echo __("Tipo de Pago")?></th>
			<th><?php echo __("Pago")?></th>
			<th><?php echo __("Fecha")?></th>
			<th>&nbsp;</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($Payments as $key=>$InvoicePayment){?>
		<tr>
			<td><?php echo $InvoicePayment->getInvoice() ?></td>
			<td><?php echo $InvoicePayment->getUserRegister()->getFullName() ?></td>
			<td><?php echo $InvoicePayment->getPaymentType() ?></td>
			<td><?php echo $InvoicePayment->getAmount() ?></td>
			<td><?php echo format_date($InvoicePayment->getCreatedAt(),"f"); ?></td>
			<td><a href="<?php echo url_for("payments/detail?id=".$InvoicePayment->getId())?>"><?php echo __("Detalles") ?></a></td>
		</tr>
		<?php }?>
	</tbody>
</table>